<?php if($view->isInvited) { ?>
<h3>
    Hei <?php echo $view->inviteData['fb_username'];?>. <?php echo $view->inviterData['first_name'];?> har tipset deg om dette arrangementet
</h3>
<?php } ?>
<form method="post" action="?action=register">
    <table>
        <tr>
            <td>
                First name: 
            </td>
                
            <td>
                <input type="text" name="data[first_name]" />
            </td>
        </tr>
        <tr>
            <td>
                Last name:
            </td>
                
            <td>
                <input type="text" name="data[last_name]" />
            </td>
        </tr>
        
        <tr>
            <td>
                Full name:
            </td>
                
            <td>
                <input type="text" name="data[name]" />
            </td>
        </tr>
        
        <tr>
            <td>
                Password:
            </td>
                
            <td>
                <input type="password" name="data[password]" />
            </td>
        </tr>
        <tr>
            <td>
                Retype password:
            </td>
                
            <td>
                <input type="password" name="data[retype_password]" />
            </td>
        </tr>
        <tr>
            <td>
                Email: 
            </td>
                
            <td>
                <input type="text" name="data[email]" />
            </td>
        </tr>
    </table>
    <br/>
    
    <input type="submit" value="Register" /> <a href="javascript:webjs.loginFacebook();">Connect to facebook</a>
</form>